//
//  Module_IOS.h
//  StarBugs
//
//  Created by ?? ? on 6/22/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//
#ifndef __Module_iso_h__
#define __Module_iso_h__

#include "cocos2d.h"


class Module_IOS : public cocos2d::CCNode
{
private:
    static Module_IOS *pModule_IOS;
public:
    static Module_IOS* getInstancePtr()
    {
        if(pModule_IOS == NULL) pModule_IOS = new Module_IOS;
        return pModule_IOS;
    }
    
    void                     recieveInApp(int type);

    static void             authenticateLocalUser();
    static void             showAchievement();
    static void             resetAchievement();
    static void             showRank();
    static void             reportRank(double score);
    static void             showCrystalSlimline();
    static void             hideCrystalSlimline();
    static void             postAchievement(int achievementId);
    static void             openURL(const char *str);
    static void             flurry_event(int type, int chpater, int stage);

    static void             reviewPopup();
    static void             callBack_restore();
    static void             callBack_closeGameKit();
    
    static void             startStore();
    static void             buyStore(int type);
    static void             restoreIAP();
    static bool             getIsIpad();
    static bool             getIs5();
    static float            getSceneH();
    static float            getScaleFactor_w();
    static float            getScaleFactor_h();
    static float            getFixedHeight(int height);
    static int              getImageScale();
    static void             checkAchievmentMetadata();
};

#endif